from hashlib import sha256

SALT = "@#$TVS^&UHei834gbhdfjs9$^^*Hj4t376d9s8rh$^TFVg"


def encode_password(pwd: str):
    obj = sha256(pwd.encode("utf8"))
    obj.update(SALT.encode("utf8"))
    result = obj.hexdigest()
    return str(result)


if __name__ == "__main__":
    password = encode_password("yd-root")
    print(password, type(password), len(password))
